package unicall.em.models.vo;

import unicall.em.models.Skill;
import unicall.em.utils.StringUtil;

public class SkillQuery {
    
    //技能组名称
    private String name;
    
    //技能组编号
    private String queueId;
    
    public SkillQuery(){
        
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getQueueId() {
        return queueId;
    }

    public void setQueueId(String queueId) {
        this.queueId = queueId;
    }
    

    public SkillSpec toSpec(){
        Skill skill = new Skill();
        if(!StringUtil.isBlank(this.name)){
            skill.setName(StringUtil.trim(this.name));
        }
        if(!StringUtil.isBlank(this.queueId)){
            skill.setQueueId(this.queueId);
        }
        return new SkillSpec(skill);
    }
       
    
    
}
